package com.eling.elcms.system.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 请求的model
 * 
 * @author xdluo
 *
 */
@Entity
@Table(name = "sm_requestmonitor")
public class RequestModel {

	@Id
	private Long id;

	@Column
	private String userCode;

	@Column
	private String url;

	@Column(columnDefinition = "TEXT")
	private String param;

	@Column
	private Boolean finished;

	@Column
	private Long responseDuration;

	@Column
	private Date accessTime;

	@Column
	private String remoteAddr;

	@Column
	private String sessionID;

	@Column
	private String userAgent;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public Long getResponseDuration() {
		return responseDuration;
	}

	public void setResponseDuration(Long responseDuration) {
		this.responseDuration = responseDuration;
	}

	public String getRemoteAddr() {
		return remoteAddr;
	}

	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	public Boolean getFinished() {
		return finished;
	}

	public void setFinished(Boolean finished) {
		this.finished = finished;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public String getSessionID() {
		return sessionID;
	}

	public void setSessionID(String sessionID) {
		this.sessionID = sessionID;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

}
